package com.zm.api.openFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@Component("payFeign")          //服务名
@FeignClient(value = "pay-server")
public interface PayFeign {
    @RequestMapping("/pay/{userId}/{price}")
    public boolean pay(@PathVariable("userId") Long userId, @PathVariable("price") Long price);

    @RequestMapping("/payTCC/{userId}/{price}")
    public boolean payTCC(@PathVariable("userId") Long userId,@PathVariable("price") Long price);
}
